import Http from "../Http";
import {stringify} from "qs";

// 用户（学生的）的增删改查充值
export default {
    lists(data = {}) {
        return Http.get("/tms/user", data)
    },
    info(id) {
        return Http.get(`/tms/user/${id}`)
    },
    create(data) {
        return Http.post("/tms/user/register", stringify(data))
    },
    update(data) {
        return Http.put("/tms/user", stringify(data))
    },
    destroy(id) {
        return Http.delete(`/tms/user/${id}`)
    },
}
